<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>kuoqi-app canvas</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, width=device-width, maximum-scale=1, user-scalable=no">
<script src="https://res.kuoqps.com/main/kq.1.06/kq.1.06.dev.js"></script>
<script src="./dev.js"></script>
<style>
body{
	margin:0;padding:0;	
}
#app{
	position:relative;
	width:100%;
}
#app canvas{
	max-width: 100%;	
}
</style>
</head>

<body>
<div id="app"></div>
</body>
<script>
//初始化
KApp.init({
	//执行一些基础的初始化数据信息
	core:'app.game',//内核信息，默认使用html内核
	boxElement:'#app',//使用盒子元素
	app_root:'./demo/',//应用根目录
	//需要额外载入的路由信息
	//注意先后顺序非常重要
	models:[
		{path:'./lib/element.js',isRoot:1},//加载画圆的函数信息
		{path:'./lib/element/canvas.js',isRoot:1},//加载画圆的函数信息
		{path:'./lib/element/canvas/circle.js',isRoot:1},//加载画圆的函数信息
		{path:'./lib/element/canvas/box.js',isRoot:1},//加载方形的函数信息
		{path:'./lib/element/canvas/image.js',isRoot:1},
		{path:'./app/index.js',isRoot:0},//用户模块下的脚本加载
	],
	resource:[
		{path:'./resource/test.jpeg',name:'test-image'}
	],
}).ready(function(){
	//这里来写根据配置信息需要执行的操作
	//最终创建
	this.create();//创建
	
});
//初始化成功之后执行
//app.ready();
</script>
</html>
